package org.celery.modules.order.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.order.entity.OrderLog;
import org.celery.modules.order.vo.OrderLogVO;

/**
 * 订单流水表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2022-04-04
 */
public class OrderLogWrapper extends BaseEntityWrapper<OrderLog, OrderLogVO>  {

    public static OrderLogWrapper build() {
        return new OrderLogWrapper();
    }

	@Override
	public OrderLogVO entityVO(OrderLog orderLog) {
		OrderLogVO orderLogVO = BeanUtil.copy(orderLog, OrderLogVO.class);

		return orderLogVO;
	}

}
